<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>{$jerry.lang.custom_manage}</title>
    <hdjs/>
    <bootstrap/>
    <css file="__CONTROL_TPL__/css/css.css"/>
</head>
<body>
<div class="wrap">
    <div class="title-header">{$jerry.lang.custom_manage}</div>
    <form action="" method="post" class="form-inline hd-form">
        <table class="table1">
        <tr>
                <th colspan="100">{$jerry.lang.basic_relaship}</th>
            </tr>
            <tr>
                <td class="w100">{$jerry.lang.custom_name}</td>
                <td class="w100">{$jerry.lang.serive_type}</td>
                <td class="w150">{$jerry.lang.custom_email}</td>
                <td class="w50">{$jerry.lang.custom_sex}</td>
                <td class="w50">{$jerry.lang.tuy_time}</td>
                <td class="w150">{$jerry.lang.start_time}</td>
                <td class="w150">{$jerry.lang.end_time}</td>
                 <td class="w150">{$jerry.lang.remark}</td>
                 <td class="w150" align="center">{$jerry.lang.action}</td>
            </tr>
             <foreach from="$cusdb" value="$cus">
             <tr>
                <td >{$cus.custom_name}</td>
                <td >{$cus.serve_type}</td>
                <td >{$cus.custom_email}</td>
                <td >{$cus.custom_sex}</td>
                 <td >{$cus.serve_year}</td>
                 <td >{$cus.satartime}</td>
                 <td >{$cus.endtime}</td>
                  <td >{$cus.note}</td>
              <td >
              <a href="{|U:'Custom/reg',array('id'=>$cus['id'])}" class="btn btn-primary btn-sm">{$jerry.lang.success_buy}</a>
              <a href="{|U:'Custom/cus_edit',array('id'=>$cus['id'])}" class="btn btn-success btn-sm">{$jerry.lang.edit}</a>
              <a href="" class="btn btn-warning btn-sm">{$jerry.lang.becomeDue}</a>
              <a href="{|U:'Custom/del_cus',array('id'=>$cus['id'])}" class="btn btn-danger btn-sm">{$jerry.lang.delete}</a>
              </td>
            </tr>
            </foreach>
            <tr>
                <th colspan="100">{$jerry.lang.basic_set}</th>
            </tr>
            <foreach from="$config[1]" value="$v">
                 <tr>
                    <td class="w100">{$v.name}</td>
                    
                    <td class="w100">
                        <if value="$v['name'] eq 'index_tpl_style'">
                            <select name="{$v.name}" id="">  <foreach from="$template" value="$value">
                                <option value="{$value.name}"<if value="$v['value'] eq $value['name']">selected="selected"</if>>{$value.name}</option>
                                </foreach>
                            </select>
                        <else/>
                             <input type="text" name="{$v.name}" id="" value="{$v.value}"/>
                        </if>
                    </td>
                    <td class="w150">{$v.title}</td>
                    <td class="w150">{$v.des}</td>
                </tr>
            </foreach>
        </table>
        <div class="position-bottom">
            <input type="submit" class="hd-success" value="{$jerry.lang.save}"/>
        </div>
    </form>
</div>
</body>
</html>